﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ContentType.aspx.cs" Inherits="ContentType" %>

<%@ Register Src="UserControls/Notice.ascx" TagName="Notice" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="sidebar">
        <% if (ChildParts != null || ChildParts.Rows.Count != 0)
           { %>
        <div class="leftmodel1Container">
            <div class="leftmodel1">
                <ul>
                    <%for (int i = 0; i < ChildParts.Rows.Count; ++i)
                      {
                          string URL = "ContentList.aspx?type=" + ChildParts.Rows[i]["TypeCode"].ToString();
                          string TypeName = ChildParts.Rows[i]["TypeName"].ToString();
                    %>
                    <li><a href="<%=URL%>" style="display: block;">
                        <%=TypeName%></a> </li>
                    <%} %>
                </ul>
            </div>
        </div>
        <%} %>
        <div class="leftmodel2Container">
            <div class="leftmodel2">
                <ul>
                    <asp:Repeater ID="rpTopList" runat="server">
                        <ItemTemplate>
                            <li><a href='Content.aspx?articleID=<%#Eval("ID")%>&TypeCode=<%#Eval("TypeCode") %>'
                                target="_blank">
                                <%#CutString(Eval("Title").ToString())%></a> </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
    </div>
    <div id="rightcontent">
        <div class="rightNav" id="dvNav" runat="server">
            当前位置：<a href="Default.aspx">中共重庆市沙坪坝区委统一战线工作部</a>&nbsp;>>&nbsp;</div>
        <div class="model">
            <div class="contentTitle">
                <asp:Literal runat="server" ID="ltTitle"></asp:Literal></div>
            <div>
                <asp:Repeater ID="rpParts" runat="server" OnItemDataBound="rpParts_ItemDataBound">
                    <ItemTemplate>
                        <div class="smalltitle">
                            <%#Eval("TypeName")%></div>
                        <div>
                            <asp:Repeater ID="rpList" runat="server">
                                <ItemTemplate>
                                    <li><a href='Content.aspx?articleID=<%#Eval("ID")%>&TypeCode=<%#Eval("TypeCode") %>'
                                        target="_blank">
                                        <%#Eval("Title")%></a></li></ItemTemplate>
                            </asp:Repeater>
                        </div>
                        <div id="dvEmpty" runat="server" class="empty">
                        </div>
                        <div class="more">
                            <a href='ContentList.aspx?type=<%#Eval("TypeCode")%>'>更多>> </a>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
</asp:Content>
